import mixin from './mixin'
export default {
  mixins: [mixin],
  data() {
    return {}
  },
  methods: {
    deleteRow(selected) {
      return new Promise(resolve => {
        if (selected.length <= 0) {
          this.$Modal.warning({ title: '提示', content: '请选择要删除的行' })
          return
        }
        this.$Modal.confirm({
          title: '删除记录',
          content: '确认要删除所选记录?',
          onOk: () => {
            resolve(selected)
          },
        })
      })
    },
  },
}
